package com.eonmind.common.provider.entity.ai;

import com.eonmind.common.contract.enums.DelEnum;
import com.eonmind.common.contract.enums.StatusEnum;
import com.eonmind.common.contract.timer.Timer;
import com.mongoplus.annotation.ID;
import com.mongoplus.annotation.collection.CollectionName;
import com.mongoplus.annotation.index.MongoIndex;
import com.mongoplus.annotation.index.MongoTextIndex;
import com.mongoplus.enums.IdTypeEnum;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.FieldNameConstants;

/**
 * AI助手
 *
 * @author Xujie
 * @since 2025/5/5 10:54
 **/
@Data
@CollectionName("aiAssistant")
@FieldNameConstants
@MongoTextIndex(fields = {"assistantName", "assistantPrompt"})
@ToString
public class AiAssistant {
    /**
     * 助手id
     */
    @ID(type = IdTypeEnum.AUTO)
    private Long id;


    /**
     * 助手名称
     */
    @MongoIndex
    private String assistantName = "";

    /**
     * 助手图标
     */
    @MongoIndex
    private String assistantIcon = "";


    /**
     * 助手prompt
     */
    @MongoIndex
    private String assistantPrompt = "";


    /**
     * 喜欢次数
     */
    @MongoIndex
    private Integer likeCount = 0;


    /**
     * 助手状态
     */
    @MongoIndex
    private Integer status = StatusEnum.OPENED.getCode();


    /**
     * 创建时间
     */
    private Long createTime = Timer.currentTimestamp();

    /**
     * 更新时间
     */
    private Long updateTime = Timer.currentTimestamp();

    /**
     * 删除状态
     */
    @MongoIndex
    private Integer del = DelEnum.UN_DEL.getCode();

}
